#include<stdio.h>
int main()
{
	int n,i=0;
	scanf("%d",&n);
	int a[10000];
	int *p=a;
	for(i=0;i<n;i++)
	{
		scanf("%d",p+i);
     }
	int sum=0,max1=p[0],min1=p[0];
	for(i=0;i<n;i++)
	{
		if(p[i]>max1) max1=p[i];
		if(p[i]<min1) min1=p[i];
		sum+=p[i];
	}
	float average=0,max=0,min=0;
	average=sum/n*1.0;
	max=max1*1.0;
	min=min1*1.0;
	printf("average = %.2f\n", average);
    printf("max = %.2f\n", max);
    printf("min = %.2f\n", min);
    return 0;
}
